package com.xuanyuan.service.impl;

import com.xuanyuan.entity.Notice;
import com.xuanyuan.mapper.NoticeMapper;
import com.xuanyuan.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class NoticeServiceImpl implements NoticeService {
    @Autowired
    private NoticeMapper noticeMapper;

    @Override
    public Notice selectNoticeById(String id) {
        return noticeMapper.selectNoticeById(id);
    }

    @Override
    public List<Notice> selectNoticeList(Notice notice) {
        return noticeMapper.selectNoticeList(notice);
    }

    @Override
    public Integer insertNotice(Notice notice) {
        return noticeMapper.insertNotice(notice);
    }

    @Override
    public Integer updateNotice(Notice notice) {
        return noticeMapper.updateNotice(notice);
    }

    @Override
    public Integer deleteNoticeByIds(String[] ids) {
        return noticeMapper.deleteNoticeByIds(ids);
    }
}
